﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL.HR
{
    public class JobsBase
    {
        /// <summary>
        /// 添加信息
        /// </summary>
        /// <param name="newsObj"></param>
        /// <returns></returns>
        public static string Add(Model.HR.JobsBase newsObj)
        {
            return new SQLServerDAL.HR.JobsBase().Add(newsObj);
        }
        /// <summary>
        /// 修改信息
        /// </summary>
        /// <param name="newsObj"></param>
        /// <returns></returns>
        public static string Modify(Model.HR.JobsBase newsObj)
        {
            return new SQLServerDAL.HR.JobsBase().Update(newsObj);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="articleid"></param>
        public static void Delete(string articleid)
        {
            new SQLServerDAL.HR.JobsBase().Delete(articleid);
        }
        /// <summary>
        /// 匹配 Id 获取对象
        /// </summary>
        /// <param name="articleid"></param>
        /// <returns></returns>
        public static Model.HR.JobsBase GetObjById(string articleid)
        {
            if (Common.Utils.IsGuid(articleid))
                return (new SQLServerDAL.HR.JobsBase()).GetObjById(articleid);
            else
                return null;
        }
    }
}
